package com.zhangzhan.gulimallmember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallcommcon.util.R;
import com.zhangzhan.gulimallmember.entity.MemberEntity;
import com.zhangzhan.gulimallmember.tos.GiteeUserInfoTo;
import com.zhangzhan.gulimallmember.tos.UserLoginTo;
import com.zhangzhan.gulimallmember.tos.UserRegisterTo;

import java.util.Map;

/**
 * 会员
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 18:17:09
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R enrollUser(UserRegisterTo to);

    MemberEntity login(UserLoginTo to);

    MemberEntity oauth2GiteeEnrollUser(GiteeUserInfoTo to);
}

